<?php

class ResultDetail extends BaseModel 
{
    /**
     * Returns the static model of the specified AR class.
     * @return CActiveRecord the static model class
     */
    public static function model($className=__CLASS__)
    {
        return parent::model($className);
    }

    /**
     * @return string the associated database table name
     */
    public function tableName()
    {
        return 'result_detail';
    }

    public function getTime() 
    {
        $cols = explode("\t", $this->content); 
        return date('Y-m-d H:i:s', $cols[0]);
    }
    
    public function getMid() 
    {
        $cols = explode("\t", $this->content); 
        return $cols[1];
    }
    
    public function getIp() 
    {
        $cols = explode("\t", $this->content); 
        return $cols[2];
    }
    
    public function getPath() 
    {
        $cols = explode("\t", $this->content); 
        return urldecode($cols[3]);
    }
    
    public function getLevel() 
    {
        $cols = explode("\t", $this->content); 
        return $cols[4];
    }
}
